import request from "@/utils/request"

//接口查询设备模型列表
export function queryDeviceModelList(data) {
  return request({
    url: "/bWorkFlowModel/queryDeviceModelList",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//逻辑组件 查询模型参数接口
export function queryDeviceModelParamList(data) {
  return request({
    url: "/bWorkFlowModel/queryDeviceModelParamList",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//逻辑组件 查询模型参数值接口
export function queryDeviceModelParamValueList(data) {
  return request({
    url: "/bWorkFlowModel/queryDeviceModelParamValueList",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//更改设备参数的查询接口
export function queryDeviceModelParamChangeList(data) {
  return request({
    url: "/bWorkFlowModel/queryDeviceModelParamChangeList",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//更改设备参数的查询接口
export function addMyWorkModel(data) {
  return request({
    url: "/bWorkFlowModel/addMyWorkModel",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

//工作流列表

export function queryMyWorkModelPage(data) {
  return request({
    url: "/bWorkFlowModel/queryMyWorkModelPage",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

export function queryParamAndComByModelCode(data) {
  return request({
    url: "/bWorkFlowModel/queryParamAndComByModelCode",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//工作流类型


export function queryEnumConfigList(data) {
  return request({
    url: "/bEnumConfig/queryEnumConfigList",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//查询工作流详情
export function queryMyWorkModelOne(data) {
  return request({
    url: "/bWorkFlowModel/queryMyWorkModelOne",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//删除工作流
export function deleteWorkFlow(data) {
  return request({
    url: "/bWorkFlowModel/deleteMyWorkModelOne",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

//修改工作流
export function updateMyWorkModelOne(data) {
  return request({
    url: "/bWorkFlowModel/updateMyWorkModelOne",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

//查询系统的工作流列表
export function querySysWorkModelPage(data) {
  return request({
    url: "/bWorkFlowModel/querySysWorkModelPage",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//查询系统的工作流单个详情页
// /bWorkFlowModel/querySysWorkModelOne
export function querySysWorkModelOne(data) {
  return request({
    url: "/bWorkFlowModel/querySysWorkModelOne",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//加入到我的工作流
export function addMyWorkFromSys(data) {
  return request({
    url: "/bWorkFlowModel/addMyWorkFromSys",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

//实例化列表
export function queryWorkNewList(data) {
  return request({
    url: "/setWorkFlow/queryWorkNewPage",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//实例化列表
export function queryWorkXLKList(data) {
  return request({
    url: "/setWorkFlow/queryWorkXLKList",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//实例化保存
export function insertWorkNewOne(data) {
  return request({
    url: "/setWorkFlow/insertWorkNewOne",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

//fzr
export function queryProjectAllUser(data) {
  return request({
    url: "/setWorkFlow/queryProjectAllUser",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

//fzr
export function openOrCloseWorkNewOne(data) {
  return request({
    url: "/setWorkFlow/openOrCloseWorkNewOne",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

//实例化详情
export function queryWorkNewOne(data) {
  return request({
    url: "/setWorkFlow/queryWorkNewOne",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

//实例化详情
export function deleteWorkNewOne(data) {
  return request({
    url: "/setWorkFlow/deleteWorkNewOne ",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

export function updateWorkNewOne(data) {
  return request({
    url: "/setWorkFlow/updateWorkNewOne",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

export function queryTaskDetail(data) {
  return request({
    url: "bTask/queryTaskDetail",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

export function queryTaskPage(data) {
  return request({
    url: "bTask/queryTaskPage",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

export function queryJudgeNodeDetail(data) {
  return request({
    url: "setWorkFlow/queryJudgeNodeDetail",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}
